<?php

/**
 * Entidad form.
 *
 * @package    auip
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class EntidadForm extends BaseEntidadForm
{
  public function configure()
  {
      $this->widgetSchema['nombre']  = new sfWidgetFormTextarea(array(), array('class'=>'nombre','rows' => '1', 'cols' => '95'));
      $this->widgetSchema['tipo_entidad']  = new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('TipoEntidad'), 'add_empty' => 'Seleccione Tipo'));
      $this->widgetSchema['pais_id'] = new sfWidgetFormDoctrineChoice(array('model' => 'Pais', 'add_empty'=>'Seleccione el pais', 'order_by' => array('nombre','asc'),'label'=>'Pais'));
      //$this->widgetSchema['region_id'] = new sfWidgetFormDoctrineDependentSelect(array('model' => 'Region', 'depends'=>'pais_id','cache'=>'false', 'ref_method' =>'getPaisId', 'add_empty'=>false, 'ajax'=> true, 'order_by' => array('nombre','asc'),'label'=>'Region'));
  }
}
